package Command;


//the receiver class
public class Light {
	private boolean isOn ; 
	
	public Light(){
		isOn = false;
	}
	
	/**
	 * turn the light off
	 */
	public void turnOn(){ 
		isOn = true;
		System.out.println("light is on.");
	}
	/**
	 * turn the light on
	 */
	public void turnOff(){
		isOn = false ;
		System.out.println("light is off.");
	}

}
